home *** CD-ROM | disk | FTP | other *** search
- global gDoorOpen, gDoorLoc
-
- on mouseDown
- pushBtn()
- if rollOver(20) then
- if gDoorOpen then
- repeat with n = count(gDoorLoc) down to 1
- set the locH of sprite 21 to getAt(getAt(gDoorLoc, n), 1)
- set the locV of sprite 21 to getAt(getAt(gDoorLoc, n), 2)
- updateStage()
- end repeat
- set gDoorOpen to 0
- else
- repeat with n = 1 to count(gDoorLoc)
- set the locH of sprite 21 to getAt(getAt(gDoorLoc, n), 1)
- set the locV of sprite 21 to getAt(getAt(gDoorLoc, n), 2)
- updateStage()
- end repeat
- set gDoorOpen to 1
- end if
- end if
- end
-